package com.sancai.fruit.base;

import android.app.Application;
import android.support.multidex.MultiDex;

import com.facebook.drawee.backends.pipeline.Fresco;
import com.zhy.autolayout.config.AutoLayoutConifg;

/**
 * Created by xiangyao on 2018/8/1.
 */

public class DemoApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        AutoLayoutConifg.getInstance().useDeviceSize();
        initFresco();
        MultiDex.install(this);
    }

    /**
     * 初始化fresco
     */
    private void initFresco() {
        Fresco.initialize(this);
    }
}
